package com.example.cart.dto;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.math.BigDecimal;

@Entity(tableName = "Goods")
public class Goods {


    @PrimaryKey(autoGenerate = true)
    private int id;

    @ColumnInfo(index = true)
    private String name;

    private String detail;

    @ColumnInfo(name = "image_src")
    private String imageSrc;

    private Integer quantity;

    @ColumnInfo()
    private String price;

    @Ignore
    public Goods(int id, String name, String detail, String imageSrc, Integer quantity,String price) {
        this.id = id;
        this.name = name;
        this.detail = detail;
        this.imageSrc = imageSrc;
        this.quantity = quantity;
        this.price=price;
    }

    public Goods() {
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }


}
